package com.example.dormitorymanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-06-06
 */
@ApiModel(value = "管理员对象")
public class Administrator implements Serializable {

    private static final long serialVersionUID=1L;


    @ApiModelProperty(name = "id",value = "数据库id自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "suername",value = "用户名")
    private String username;

    @ApiModelProperty(name = "password",value = "密码" )
    private String password;

    @ApiModelProperty(name = "name",value = "姓名")
    private String name;

    @ApiModelProperty(name = "phone",value = "手机号")
    private String phone;

    @ApiModelProperty(name = "authority",value = "权限")
    private String authority;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getUsername() {
        return username;
    }

      public void setUsername(String username) {
          this.username = username;
      }
    
    public String getPassword() {
        return password;
    }

      public void setPassword(String password) {
          this.password = password;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public String getPhone() {
        return phone;
    }

      public void setPhone(String phone) {
          this.phone = phone;
      }
    
    public String getAuthority() {
        return authority;
    }

      public void setAuthority(String authority) {
          this.authority = authority;
      }

    @Override
    public String toString() {
        return "Administrator{" +
              "id=" + id +
                  ", username=" + username +
                  ", password=" + password +
                  ", name=" + name +
                  ", phone=" + phone +
                  ", authority=" + authority +
              "}";
    }
}
